package com.matongxue.ioc2;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component("car2")
@Data
public class Car {
    @Value("红旗")
    private String name;
    @Value("1111122221.121")
    private double price;
}
